CC = g++
CFLAGS = -g -Wall -fPIC -I../include
LIB =../lib

all: ${LIB}/libsysinfo.a 

${LIB}/libsysinfo.a: sysinfo.o
	ar rcs ${LIB}/libsysinfo.a sysinfo.o
	ranlib ${LIB}/libsysinfo.a

sysinfo.o: sysinfo.cc
	${CC} ${CFLAGS} -c sysinfo.cc

clean:
	-rm -f ${LIB}/libsysinfo.a *.o
	
	 
